package com.ruoyi.project.purchase.service;

import java.util.List;

import com.ruoyi.framework.web.domain.AjaxResult;
import com.ruoyi.project.purchase.domain.RyOrderBill;
import com.ruoyi.project.purchase.domain.pojo.OrderBillBean;

/**
 * 订单关联发票信息Service接口
 *
 * @author 萧雪
 * @date 2022-10-25
 */
public interface IRyOrderBillService
{
    /**
     * 查询订单关联发票信息
     *
     * @param id 订单关联发票信息主键
     * @return 订单关联发票信息
     */
    public RyOrderBill selectRyOrderBillById(Long id);

    /**
     * 根据订单id 查询发票信息
     *
     * @param orderId
     * @return
     */
    public List<RyOrderBill> selectRyOrderBillByOrderId(Long orderId);

    /**
     * 新增订单关联发票信息
     */
    public AjaxResult addOrderBill(OrderBillBean orderBillBean);


    /**
     * 查询订单关联发票信息列表
     *
     * @param ryOrderBill 订单关联发票信息
     * @return 订单关联发票信息集合
     */
    public List<RyOrderBill> selectRyOrderBillList(RyOrderBill ryOrderBill);

    /**
     * 新增订单关联发票信息
     *
     * @param ryOrderBill 订单关联发票信息
     * @return 结果
     */
    public int insertRyOrderBill(RyOrderBill ryOrderBill);

    /**
     * 修改订单关联发票信息
     *
     * @param ryOrderBill 订单关联发票信息
     * @return 结果
     */
    public int updateRyOrderBill(RyOrderBill ryOrderBill);

    /**
     * 批量删除订单关联发票信息
     *
     * @param ids 需要删除的订单关联发票信息主键集合
     * @return 结果
     */
    public int deleteRyOrderBillByIds(Long[] ids);

    /**
     * 删除订单关联发票信息信息
     *
     * @param id 订单关联发票信息主键
     * @return 结果
     */
    public int deleteRyOrderBillById(Long id);
}
